﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VTLive.Models.RegisterViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Register
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Register</h2>
    
    <%if (TempData["Error"] != null)
      {%>
           <h2 style="color:red;"><%= Html.Encode(TempData["Error"]) %></h2>
    <% } %>

    
    
    <% using (Html.BeginForm())
      {%>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.User.Username) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.User.Username) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.User.Password) %>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(model => model.User.Password) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ConfirmPassword) %>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(model => model.ConfirmPassword) %>
            </div>

            
            <p>
                <input type="submit" value="Submit" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Log In", "LogIn") %>
    </div>

</asp:Content>

